package com.itheima.Test2;

import java.lang.reflect.Constructor;

public class TestTeacher {
    public static void main(String []args) throws ClassNotFoundException, NoSuchMethodException {
        Class class1 = Class.forName("com.itheima.Test2.Teacher");

        Constructor constructor1 = class1.getConstructor(String.class,int.class);
        System.out.println(constructor1);

        Constructor declaredConstructor1 = class1.getDeclaredConstructor(String.class);
        System.out.println(declaredConstructor1);

        Constructor[] constructors = class1.getConstructors();
        System.out.println(constructors);

        Constructor[] declaredConstructors = class1.getDeclaredConstructors();
        System.out.println(declaredConstructors);


    }
}
